package cn.bookcycle.panda.user.service.Impl;

import cn.bookcycle.panda.user.dao.AuthsDao;
import cn.bookcycle.panda.user.pojo.DO.AuthsDO;
import cn.bookcycle.panda.user.service.AuthsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("authsService")
public class AuthsServiceImpl implements AuthsService {
    @Autowired
    AuthsDao authsDao;
    @Override
    public AuthsDO getAuths(String identifier,String credential,String type) {
        return authsDao.getAuths(identifier,credential,type);
    }
    @Override
    public AuthsDO getAuthsById(String authsId){
        return authsDao.getAuthsByUserId(authsId);
    }

    @Override
    public boolean updateAuths(AuthsDO authsDO) {
        return authsDao.updateAuths(authsDO);
    }

    @Override
    public boolean saveAuths(AuthsDO authsDO) {
        return authsDao.saveAuths(authsDO);
    }

    @Override
    public boolean removeAuths(AuthsDO authsDO) {
        return authsDao.removeAuths(authsDO);
    }

    @Override
    public List listAuths(AuthsDO authsDO){
        return authsDao.listAuths(authsDO);
    }
}
